/**
 * @file支出管理
 * @author lishaohai
 */
import request from '@/utils/request';

// 支出管理 => 获取收入列表
export function getExpenditureList(params) {
    return request({method: 'get', url: '/api/expenditure/', params});
}

// 支出管理 => 新建收入
export function postExpenditureList(data) {
    return request({method: 'post', url: '/api/expenditure/', data});
}

// 支出管理 => 修改收入
export function putExpenditureUpdateOne(id, data) {
    return request({method: 'put', url: `/api/expenditure/${id}/`, data});
}

// 支出管理 =>支出详情 => 获取单个收入信息
export function getExpenditureById(id) {
    return request({method: 'get', url: `/api/expenditure/${id}/`});
}
// 支出管理 =>支出详情 => 获取单个收入信息
export function deleteExpenditureById(id) {
    return request({method: 'delete', url: `/api/expenditure/${id}/`});
}
